import React from "react";
import useTime from "./11-useTime";
import useAdd from "./13-useAdd";

const App = () => {
  const [count, fn] = useAdd();
  const [time] = useTime();

  return (
    <>
      <h3>自定义hooks</h3>
      <p>{count}</p>
      <button onClick={fn}>btn</button>
      <p>{time}</p>
    </>
  );
};

export default App;
